This example is for Wiring version 0027+. If you have a previous version, use the examples included with your software. If you see any errors or have comments, please let us know.

Blink the Wiring board LED by BARRAGAN http://barraganstudio.com

turns on and off the Wiring board LED (pin48), with intervals of 1 second (1000 milliseconds)



void setup() 
{
  pinMode(48, OUTPUT);  // set pin 48 as output
}

void loop()
{
  digitalWrite(48, HIGH);  // set the LED on
  delay(1000);             // wait for a second
  digitalWrite(48, LOW);   // set the LED off
  delay(1000);             // wait for a second
}